<html>

	<head>
		<title>素材列表</title>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">

		<link href="../../css/skin/default/style.css" rel="stylesheet" type="text/css" />
		<link href="../../css/dialog.css" rel="stylesheet">
		<link href="../../js/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />

		<script src="../../js/lib/jquery/jquery-1.10.2.min.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>

		<script src="../../js/lib/ligerUI/js/plugins/ligerPopupEdit.js"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerForm.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerRadio.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTip.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerMenu.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerToolBar.js" type="text/javascript"></script>
		<script type="text/javascript" src='../../js/JScripts/plupload/js/plupload.full.min.js'></script>
		<script src="../../js/lib/jquery.form.js" type="text/javascript"></script>
		<script src="../../js/lib/json2.js" type="text/javascript"></script>
		<script src="../../js/dialog.js"></script>
		<script src="../../js/JS/layout.js"></script>
		<script src="../../js/constants.js" type="text/javascript"></script>
		<script src="../../js/api.js" type="text/javascript"></script>
	
		<script type="text/javascript">
			var manager;
			$(document).hover(parent.hindMenu);

			var mid = $api.getparastr("mid");
			var phototypeUrl = BaseUrl + "AttachType?token=" + $api.getStorage("token");

			 
			$(function() {
				$("form").ligerForm();
				 
				 $api.ajaxget(phototypeUrl,{},function(data){
				 	var parma = {
				 		Total:data.length,
				 		Rows:data
				 	}
				 	 
				initView(parma); 
				 });
				
				 

			});
 
			 
			function initView(data) {
				 
				manager = $("#maingrid").ligerGrid({
					columns: [ 
						{
							display: '文件名',
							name: 'Fname',
							align: 'left',
							minWidth: 220 
						} 
					],
					dataAction: 'local', 
				    data: data,  
					width: '95%',
					height:'85%'
				});

			}
			 
			 
			function f_save() {
				var row = manager.getSelectedRow();
				if(row) {
					return row;
				} else {
					return null;
				}
			}
 
			 
		</script>

	</head>

	<body class="mainbody">
		<form id="form1" onsubmit="return false">
			 

			 
			<div id="maingrid" style="margin: 0px;background:#fff;"></div>
		 
		</form>

	</body>

</html>